package com.sinoglobal.sinostore.fragment;

import com.sinoglobal.sinostore.R;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;

public abstract class AbstractFragment extends Fragment {

	/**
	 * 
	* @author LK
	* @methods toActivity 
	* @description 描述信息 跳转activity方法
	* @date 2015-1-13 下午3:00:10
	* @param toClsActivity
	* @param bundle 参数说明
	 */
	public void toActivity(Class<?> toClsActivity, Bundle bundle) {
		Intent intent = new Intent(getActivity(), toClsActivity);
		if (bundle != null) {
			intent.putExtras(bundle);
		}
		startActivity(intent);
		getActivity().overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);
	}
}
